import React from 'react';
import ChargeDetail from './ChargeDetail';
import ChargePay from './ChargePay';
import {chargePay} from './Common';
export default class Charge500 extends React.Component {
    constructor(props) {
        super(props);
        this.state={
            account:12223456786,
            money:1000,
        }
    }
    pay=(a)=>{
        chargePay(this.state.account,this.state.money,'text/text.json');
    }
    render(){
        return(
            <div>
                <ChargeDetail account={this.state.account}/>
                <ChargePay money={this.state.money} pay={this.pay}/>
            </div>
        )
    }
}
